var User_message_list = require('../model/user_message_list')
const axios = require('axios')
const md5 = require('md5')
var validator = require('validator');
const result = require('../utils/result')
/**
 * 用户消息
 * @param req
 * @param res
 * @returns {Promise<void>}
 * @constructor
 */
exports.User_message_list = async (req,res)=>{

    let uid = req.query.uid;
    if(!uid){
        res.json(result(-1,'fail','no uid'))
        return;
    }
    let a = await User_message_list.findAll({
        where:{
            uid:uid
        }
    })
    res.json(result(0,'success',a))
}
